package cn.edu.scau.cmi.linhongyu.abstractFactory;

public class Tianbang implements Brand{
	@Override
	public String getBrand() {
		String brand = "Tianbang is selected!";
		return brand;
	}
	public Meat getFactory(int i) {
		MeatFactory meatFactory = null;
		Meat meat = null;
		switch(i) {
			case 1:
				meatFactory = new PorkFactory();meat = meatFactory.getMeat();break;
			case 2:
				meatFactory = new BeefFactory();meat = meatFactory.getMeat();break;
			case 3:
				meatFactory = new ChickenFactory();meat = meatFactory.getMeat();break;
		}
		return meat;
	}
}